package com.zheng.damo;

public class People {
    public String name;
    public int age;

    public People(){
        System.out.println("父类无参");
    }
    public People(String name, int age) {
        System.out.println("父类有参构造");
        this.name = name;
        this.age = age;
    }

    public void eat(){
        System.out.println("吃");
    }
}
